package com.sos.logging
{
	import flash.events.Event;

	public class LogEvent extends Event
	{
		
		// -------------------------------------------------------------------------------
		// CONSTANTS
		// -------------------------------------------------------------------------------
		
		public static const LOG:String 			= "tcglogEvent";
		
		// -------------------------------------------------------------------------------
		// FIELDS
		// -------------------------------------------------------------------------------
		
		private var _level:LogLevel;
		private var _message:String;
		
		// -------------------------------------------------------------------------------
		// CONSTRUCTORS
		// -------------------------------------------------------------------------------
		
		public function LogEvent(level:LogLevel, message:String)
		{
			super(LOG, false, false);
			_level = level;
			_message = message;
		}

		// -------------------------------------------------------------------------------
		// PROPERTIES
		// -------------------------------------------------------------------------------
		
		public function get level():LogLevel
		{
			return _level;
		}

		public function get message():String
		{
			return _message;
		}


	}
}